package sdau.hjk.service;

import sdau.hjk.entity.Manager;
import sdau.hjk.entity.User;
import sdau.hjk.entity.UserRecord;
import sdau.hjk.entity.UserReport;

import java.security.NoSuchAlgorithmException;
import java.util.List;

/**
 *@version 1.0
 *@author: huangjiakai
 *@create:2021−03-01 19:01
 *@className:com.hjk.service.IManagerService
 *@description: TODO
 */
public interface IManagerService {
    //管理员登录
    public Manager find(String name, String password) throws NoSuchAlgorithmException;

    //查询未审核记录
    public List<UserReport> findAllReport();

    //审批用户外出报备
    public void approveUserReport(UserReport userReport);

    //查询专业所有用户
    public List<User> findByMajor(String major);

    //查询备注特殊情况的打卡用户
    public List<UserRecord> findByNote() throws Exception;

    //查询当天未打卡用户
    public List<User> findByNotClock() throws Exception;

    //删除用户信息
    public void deleteUser(Integer id);
}
